<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        CommandButton
    </ui:define>

    <ui:define name="description">
        CommandButton extends the standard h:commandButton with ajax, partial processing and skinning features.
    </ui:define>

    <ui:param name="documentationLink" value="/components/commandbutton" />

    <ui:define name="implementation">
        
        <h:form> 
            <p:growl id="growl" life="2000" />
            
            <p:commandButton value="Ajax Submit" id="ajax" update="growl" action="#{buttonView.buttonAction}" style="margin-right:20px;" styleClass="ui-priority-primary" />

            <p:commandButton value="Non-Ajax Submit" id="nonAjax" action="#{buttonView.buttonAction}" style="margin-right:20px;" ajax="false" />

            <p:commandButton value="With Icon" id="withIcon" action="#{buttonView.buttonAction}" update="growl" style="margin-right:20px;" icon="pi pi-save" />

            <p:commandButton action="#{buttonView.buttonAction}" id="iconOnly" update="growl" style="margin-right:20px;" icon="pi pi-save" title="Icon Only" />

            <p:commandButton value="Disabled" id="disabled" style="margin-right:20px;" disabled="true" />   
        </h:form>

    </ui:define>

</ui:composition>
